package ru.incoremedia.gwttest.core.client.dto;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;


public abstract class EntityDto implements Serializable {

    private Map<String, Serializable> properties = new HashMap<String, Serializable>();

    public Serializable getProperty(Enum property) {
        return properties.get(property.toString());
    }

    public void setProperty(Enum property, Serializable value) {
        properties.put(property.toString(), value);
    }

    public abstract Enum[] getPropertiesEnum();

}
